home *** CD-ROM | disk | FTP | other *** search
- { %filename% }
- { Created %date% %time% by AppMaker }
-
- Unit %UnitName%;
- Interface
-
- Uses
- %if lang = MPW%
- Types,
- Quickdraw,
- Controls,
- Dialogs,
- Events,
- Lists,
- Menus,
- StandardFile,
- TextEdit,
- Fonts,
-
- %end if%
- %for each menuItem gen usesDialog%
-
- Globals,
- Miscellany,
- ResourceDefs;
-
- {----------}
- Procedure Init%MenuName%M;
- Procedure Choose%MenuName% (itemNr: integer);
-
- {----------}
- Implementation
-
- %if lang = MPW%
- {$D+}
- {$R+}
- {$OV+}
- {$S %unitname%}
-
- %end if%
- var
- nrFonts: integer;
-
- {----------}
- Procedure Init%MenuName%M;
- Begin
- nrFonts := countMItems (FontMenu);
- End; {Init%MenuName%M}
-
- %for each menuitem gen doItem%
- {----------}
- Procedure Choose%MenuName% (itemNr: integer);
- var
- fontName: Str255;
- fontNum: integer;
- Begin
- DoRadioMenu (%menuName%Menu, 1, nrFonts, itemNr);
- GetItem (%menuName%Menu, itemNr, fontName);
- GetFNum (%menuName%Name, fontNum);
- End; {Choose%MenuName%}
-
- End. {%UnitName%}
-